<% if logged_in? -%>
  <div id="userbar">
  	<p>Привет, <%= link_to_current_user :content_method => :login %>!</p>
	<p><%= link_to "logout", logout_path, { :title => "logout", :class => "logout" } %></p>
	<% restrict_to 'admin' do %>
	<span>(Odmin detected!11)</span>
	<% end -%>
  </div>
<% end %>

